﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MyFace
{
    class Creditos : Estado
    {
        Rectangle RecVoltar;
        Botao Voltar;        

        public bool VoltarParaMenu = false;

        public void Initialize()
        {
            RecVoltar = new Rectangle(150, 60, 75, 70);
        }

        public void LoadContent(ContentManager Content)
        {
            Voltar = new Botao("Voltar", RecVoltar, 0);
            Voltar.Load(Content);
        }
        public void Update(GameTime gameTime)
        {
            Voltar.Update(gameTime, "Esquerda");

            if (Voltar.MouseOver&& Cursor.mstate.LeftButton == ButtonState.Pressed)
                VoltarParaMenu = true;
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            Voltar.Draw(spriteBatch);
        }

    }
}
